package com.managementemployees.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import com.managementemployees.fragments.FragmentBaoCao;
import com.managementemployees.fragments.FragmentChamCong;
import com.managementemployees.fragments.FragmentNhanVien;

public class TabsPagerAdapter extends FragmentStatePagerAdapter {

	public TabsPagerAdapter(FragmentManager fm) {
		super(fm);
		// TODO Auto-generated constructor stub
	}

	@Override
	public Fragment getItem(int index) {
		// TODO Auto-generated method stub
		switch (index) {
		case 0:
			return new FragmentNhanVien();
		case 1:
			return new FragmentChamCong();
		case 2:
			return new FragmentBaoCao();
		default:
			break;
		}
		return null;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return 3;
	}

}
